package User;

import Ioperate.Ioperate;
import book.BookList;

import javax.swing.*;

/**
 * @Author liangzai
 * @Description:
 */
public abstract class User{
    private String name;
    public Ioperate[] ioperates;

    public User(String name) {
        this.name = name;
    }

    public abstract int mune();

    public void doioperate(int choice,BookList bookList){
        ioperates[choice].work(bookList);
    }
}
